/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servinf.ani.sincronizador.dao;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author mortiz
 */
public interface DAO<T, ID extends Serializable>/*  extends Repository<T, ID> */{

    boolean create(T entity); 

    T findById(ID primaryKey);       

    List<T> findAll();          

    //Long count();                   

    boolean update(T entity);
    
    boolean delete(ID primaryKey);          

    //boolean exists(ID primaryKey);  
}
